/*
 * @Author: 肖思汗 
 * @Date: 2025-06-06 09:08:29 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-07-02 17:55:26
 */
import { GoodsBaseData } from 'types/type';
import Api from './Api';
import { cloneDeep } from 'lodash';

// 底板相关的接口
class GoodsBaseApi extends Api {

    //根据ID获取底版信息
    async getProductNegativeById(productNegativeId: number | string = "-1"): Promise<GoodsBaseData> {
        const res = await this._get('/category/page/getProductNegativeById', { productNegativeId });
        const goodsBaseData = cloneDeep(res.data);
        //@ts-ignore
        goodsBaseData.data = JSON.parse(goodsBaseData.data);
        return goodsBaseData;
    }

}


const goodsBaseApi = new GoodsBaseApi();

export default goodsBaseApi;

